﻿namespace _4_NovaAdmin.Web.Core.Option;

[ConfigSection("JWTSettings")]
public class JWTOptions
{
    public bool ValidateIssuerSigningKey { get; set; } = true;

    public string IssuerSigningKey { get; set; }

    public bool ValidateIssuer { get; set; } = true;

    public string ValidIssuer { get; set; }

    public bool ValidateAudience { get; set; } = true;

    public string ValidAudience { get; set; }

    public bool ValidateLifetime { get; set; } = true;

    public long? ExpiredTime { get; set; }

    public long ClockSkew { get; set; } = 5;

    public string Algorithm { get; set; } = "HS256";

    public bool RequireExpirationTime { get; set; } = true;

    public int ExpiresInHours { get; set; } = 8; // 默认过期时间为 8 小时
}
